<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>20常见布局技巧-文字环绕图片</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        .box {
            width: 300px;
            height: 70px;
            background: pink;
            margin: 20px auto;
            padding: 5px;
        }
        
        .box .pic {
            float: left;
            width: 120px;
            height: 70px;
            margin-right: 5px;
        }
        
        .box .pic img {
            width: 100%;
            height: 100%;
        }
        
        .box p {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
            overflow: hidden;
            font-size: 16px;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="pic">
            <img src="./study/images/box-bd2.png" alt="">
        </div>
        <p>正拉萨大家离开国家队撒赖咖啡碱阿开国家队开国家队开国家队开国家队瑟哦i阿斯蒂芬</p>
    </div>
    <div class="box">
        <div class="pic">
            <img src="./study/images/box-bd2.png" alt="">
        </div>
        <p>正拉萨大家离开国家队撒赖咖啡碱阿开国家队开国家队开国家队开国家队瑟哦i阿斯蒂芬</p>
    </div>
</body>

</html>